<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template typed_value</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../program_options/reference.html#doxygen.value__semantic_8hpp" title="Header &lt;boost/program_options/value_semantic.hpp&gt;">
<link rel="prev" href="classboost_1_1program__options_1_1positional__options__description.html" title="Class positional_options_description">
<link rel="next" href="classboost_1_1program__options_1_1typed__value__base.html" title="Class typed_value_base">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1program__options_1_1positional__options__description.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../program_options/reference.html#doxygen.value__semantic_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1program__options_1_1typed__value__base.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.classboost_1_1program__options_1_1typed__value"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template typed_value</span></h2>
<p>boost::program_options::typed_value</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../program_options/reference.html#doxygen.value__semantic_8hpp" title="Header &lt;boost/program_options/value_semantic.hpp&gt;">boost/program_options/value_semantic.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> charT <span class="special">=</span> <span class="keyword">char</span><span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">:</span> <span class="keyword">public</span> boost::program_options::value_semantic_codecvt_helper&lt; char &gt;,
                    <span class="keyword">public</span> boost::program_options::typed_value_base
<span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>

  <span class="comment">// <a class="link" href="classboost_1_1program__options_1_1typed__value.html#id-1_3_29_9_10_1_1_1_5-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a75bb75f8eac57b8713bcc173eedc904c"><span class="identifier">typed_value</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a5c12087e57f9ea4f7fa406ec68ded644"><span class="identifier">default_value</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a305c526c2cc24b28eadebe16a6325fdd"><span class="identifier">default_value</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1afa0936673a60972eb101563c463a54b3"><span class="identifier">implicit_value</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a8f375286c5bc590ded4d57421ff9747b"><span class="identifier">value_name</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a7f228f915b645f059b179d5931518798"><span class="identifier">implicit_value</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a6d96fa8c4f2104bc402fd4877b856739"><span class="identifier">notifier</span></a><span class="special">(</span><span class="identifier">function1</span><span class="special">&lt;</span> <span class="keyword">void</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a2b1c9c2f6f91abc17aee449f61cad78e"><span class="identifier">composing</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a36ef6f64217720fdd5f8b3a980c93e0e"><span class="identifier">multitoken</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1aab5180d30079f57c5f48211389c7b725"><span class="identifier">zero_tokens</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a04197958ca29985e866475a4f957eff6"><span class="identifier">required</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a2ace1c6d5a4427f63414b584a180ff8d"><span class="identifier">name</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a63b8ba304dd8f107f05c707423edd167"><span class="identifier">is_composing</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">unsigned</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1aec414bdd211f9f5918728e550ae92ba9"><span class="identifier">min_tokens</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">unsigned</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1afa3adf597d395d7fdf52319550f82c76"><span class="identifier">max_tokens</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1ad8b5065bcbdd73392cf390eac2b8add0"><span class="identifier">is_required</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1ae441968e6e21c39ff8d60a6edd6e96c2"><span class="identifier">xparse</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">bool</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1a9f932ada3b18f497104724d004f4cb78"><span class="identifier">apply_default</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1ad28399511daf8c770303e7ffa3d7e670"><span class="identifier">notify</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">type_info</span> <span class="special">&amp;</span> <a class="link" href="classboost_1_1program__options_1_1typed__value.html#doxygen.classboost_1_1program__options_1_1typed__value_1ab6ece393ffbe589e8725ee52d789565b"><span class="identifier">value_type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.29.9.11.3.4"></a><h2>Description</h2>
<p>Class which handles value of a specific type. </p>
<div class="refsect2">
<a name="id-1.3.29.9.11.3.4.3"></a><h3>
<a name="id-1_3_29_9_10_1_1_1_5-bb"></a><code class="computeroutput">typed_value</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.classboost_1_1program__options_1_1typed__value_1a75bb75f8eac57b8713bcc173eedc904c"></a><span class="identifier">typed_value</span><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span> store_to<span class="special">)</span><span class="special">;</span></pre>
<p>Ctor. The 'store_to' parameter tells where to store the value when it's known. The parameter can be NULL. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a5c12087e57f9ea4f7fa406ec68ded644"></a><span class="identifier">default_value</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> v<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies default value, which will be used if none is explicitly specified. The type 'T' should provide operator&lt;&lt; for ostream. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a305c526c2cc24b28eadebe16a6325fdd"></a><span class="identifier">default_value</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> v<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> textual<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies default value, which will be used if none is explicitly specified. Unlike the above overload, the type 'T' need not provide operator&lt;&lt; for ostream, but textual representation of default value must be provided by the user. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1afa0936673a60972eb101563c463a54b3"></a><span class="identifier">implicit_value</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> v<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies an implicit value, which will be used if the option is given, but without an adjacent value. Using this implies that an explicit value is optional, </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a8f375286c5bc590ded4d57421ff9747b"></a><span class="identifier">value_name</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> name<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies the name used to to the value in help message. <br>
 </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a7f228f915b645f059b179d5931518798"></a><span class="identifier">implicit_value</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> v<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="special">&amp;</span> textual<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies an implicit value, which will be used if the option is given, but without an adjacent value. Using this implies that an explicit value is optional, but if given, must be strictly adjacent to the option, i.e.: '-ovalue' or '–option=value'. Giving '-o' or '–option' will cause the implicit value to be applied. Unlike the above overload, the type 'T' need not provide operator&lt;&lt; for ostream, but textual representation of default value must be provided by the user. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a6d96fa8c4f2104bc402fd4877b856739"></a><span class="identifier">notifier</span><span class="special">(</span><span class="identifier">function1</span><span class="special">&lt;</span> <span class="keyword">void</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> <span class="special">&gt;</span> f<span class="special">)</span><span class="special">;</span></pre>
<p>Specifies a function to be called when the final value is determined. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a2b1c9c2f6f91abc17aee449f61cad78e"></a><span class="identifier">composing</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Specifies that the value is composing. See the 'is_composing' method for explanation. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a36ef6f64217720fdd5f8b3a980c93e0e"></a><span class="identifier">multitoken</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Specifies that the value can span multiple tokens. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1aab5180d30079f57c5f48211389c7b725"></a><span class="identifier">zero_tokens</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Specifies that no tokens may be provided as the value of this option, which means that only presense of the option is significant. For such option to be useful, either the 'validate' function should be specialized, or the 'implicit_value' method should be also used. In most cases, you can use the 'bool_switch' function instead of using this method. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="classboost_1_1program__options_1_1typed__value.html" title="Class template typed_value">typed_value</a> <span class="special">*</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a04197958ca29985e866475a4f957eff6"></a><span class="identifier">required</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Specifies that the value must occur. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a2ace1c6d5a4427f63414b584a180ff8d"></a><span class="identifier">name</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Returns the name of the option. The name is only meaningful for automatic help message. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">bool</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a63b8ba304dd8f107f05c707423edd167"></a><span class="identifier">is_composing</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Returns true if values from different sources should be composed. Otherwise, value from the first source is used and values from other sources are discarded. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">unsigned</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1aec414bdd211f9f5918728e550ae92ba9"></a><span class="identifier">min_tokens</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>The minimum number of tokens for this option that should be present on the command line. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">unsigned</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1afa3adf597d395d7fdf52319550f82c76"></a><span class="identifier">max_tokens</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>The maximum number of tokens for this option that should be present on the command line. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">bool</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1ad8b5065bcbdd73392cf390eac2b8add0"></a><span class="identifier">is_required</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Returns true if value must be given. Non-optional value </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1ae441968e6e21c39ff8d60a6edd6e96c2"></a><span class="identifier">xparse</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span> value_store<span class="special">,</span> 
            <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&amp;</span> new_tokens<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Creates an instance of the 'validator' class and calls its operator() to perform the actual conversion. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">bool</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1a9f932ada3b18f497104724d004f4cb78"></a><span class="identifier">apply_default</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span> value_store<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>If default value was specified via previous call to 'default_value', stores that value into 'value_store'. Returns true if default value was stored. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">void</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1ad28399511daf8c770303e7ffa3d7e670"></a><span class="identifier">notify</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">any</span> <span class="special">&amp;</span> value_store<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>If an address of variable to store value was specified when creating *this, stores the value there. Otherwise, does nothing. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">virtual</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">type_info</span> <span class="special">&amp;</span> <a name="doxygen.classboost_1_1program__options_1_1typed__value_1ab6ece393ffbe589e8725ee52d789565b"></a><span class="identifier">value_type</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2002-2004 Vladimir Prus<p>Distributed under the Boost Software License, Version 1.0.
      (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 
      <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1program__options_1_1positional__options__description.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../program_options/reference.html#doxygen.value__semantic_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1program__options_1_1typed__value__base.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
